package com.dykj.fireFighting.server.socialUnit.firemanger.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dykj.fireFighting.api.socialUnit.firemanger.entity.CoordinateRelation;
import com.dykj.fireFighting.api.socialUnit.firemanger.service.ICoordinateRelationService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.socialUnit.firemanger.mapper.CoordinateRelationMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.transaction.annotation.Transactional;



import java.util.List;
import java.util.Map;

/**
 * 消防站、重点部位、危险源关系表
 *
 * @Author JacksonTu
 * @Date  2021-07-21 08:33:39
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class CoordinateRelationServiceImpl extends BaseServiceImpl<CoordinateRelationMapper, CoordinateRelation> implements ICoordinateRelationService {

    @Override
   public Boolean updateByTableID(String lng, String lat, String tableId){
        return baseMapper.updateByTableID(lng,lat,tableId);
    }
    @Override
    public List<CoordinateRelation> getByTableId( String tableId,String type){
        return baseMapper.getByTableId(tableId,type);
    }

    @Override
    public Boolean deleteByTableId(String tableId, String type) {
        return baseMapper.deleteByTableId(tableId,type);
    }

    @Override
    public List<CoordinateRelation> getCoordinateByUnitId(String unitId){
        return baseMapper.getCoordinateByUnitId(unitId);
    }
}
